package com.eu.ebpm.engine.exception;

public enum ErrorCode {
	
	RU_ALREADY_CLAIM("RU_ALREADY_CLAIM", "任务已经被签收"),
	
	RU_BACK_SIGN_ERROR("RU_BACK_SIGN_ERROR", "任务已经被提交,无法回退"),
	
	RU_UNSUPORT_LANETASK_UNSIGN("RU_UNSUPORT_LANETASK_UNSIGN", "泳道中的任务签收不能回滚"),
	
	RU_ALREADY_COMPLETE("RU_ALREADY_COMPLETE", "任务已经被提交"),
	
	RU_INTERCEPTOR_NOFOUND("RU_INTERCEPTOR_NOFOUND", "查询不到对应的拦截器"),
	
	RU_NOTEXISTS_CANDIDATE("RU_NOTEXISTS_CANDIDATE", "任务不存在执行者"),
	
	RU_NONACTIVATED("RU_NONACTIVATED", "流程未激活,不能启动"),
	
	RU_NOTFOUND_DEPLOY("RU_NOTFOUND_DEPLOY", "流程部署未能查询到 key ==> "),
	
	RU_NOT_SIGN("RU_NOT_SIGN", "任务未被签收,不能往下执行"),
	
	RU_NOTFOUND_NEXTMISSION("RU_NOTFOUND_NEXTMISSION", "未能找到下一执行任务,请确认流程参数是否正确"),
	
	RU_VARIABLE_NULL("RU_VARIABLE_NULL", "流程执行参数不能为空"),
	
	RU_NO_PERMISSION_START("RU_NO_PERMISSION_START", "没有权限启动该流程"),
	
	RU_FORK_TARGETREF_ERROR("RU_FORK_TARGETREF_ERROR", "分支节点中只允许存在[USER_TASK][SERVICE_TASK][LANE_BEFORE][SUB_START_EVENT]四种类型"),
	
	BEAN_TYPE_CHANGE_ERROR("BEAN_TYPE_CHANGE_ERROR", "类型转换错误"),
	;
	
	private String code;
	
	private String desc;
	
	ErrorCode(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
